-
Notifications
You must be signed in to change notification settings - Fork 39
add umfPoolTrimMemory #1318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add umfPoolTrimMemory #1318
Conversation
6de8410
to
6a3ae03
Compare
4a3b48f
to
4dee8a2
Compare
a699662
to
c151a5c
Compare
src/pool/pool_disjoint.c
Outdated
if (hPool == NULL) { | ||
return UMF_RESULT_ERROR_INVALID_ARGUMENT; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you introduce UMF_CHECK
above, please apply it here as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to assert as this is checked in the upper layer
test/memoryPoolAPI.cpp
Outdated
// TODO enable jemalloc pool tests | ||
//poolCreateExtParams{umfJemallocPoolOps(), nullptr, nullptr, | ||
// &BA_GLOBAL_PROVIDER_OPS, nullptr, nullptr})); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct indentation and add information when it should be enabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed + created an issue #1455
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that #1455 is fixed
6d877f9
to
c523215
Compare
02c6e96
to
c2a5994
Compare
c2a5994
to
6d5b0c0
Compare
@KFilipek @lukaszstolarczuk @lplewa please re-review |
9b7d33e
to
33878b6
Compare
33878b6
to
7930e59
Compare
implement umfPoolTrimMemory